﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace day7_case1
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Compute op = new Compute();
            int sum1 = op.getSum(5, 8);
            Console.WriteLine("两数之和{0}", sum1);
            int sum2 = op.getSum(5, 8, 10);
            Console.WriteLine(sum2);
            double sum3 = op.getSum(5.5, 8.8);
            Console.WriteLine(sum3);
            string sum4 = op.getSum("人", "会吃饭");
            Console.WriteLine(sum4);
            Console.WriteLine("{0}", op.getSum(5, 8));

        }
        class Compute
        {
            public int getSum(int a, int b)
            {
                return a + b;
            }
            public int getSum(int a, int b, int c)
            {
                return a + b + c;
            }
            public double getSum(double a, double b)
            {
                return a + b;
            }
            public string getSum(string a, string b)
            {
                return a + b;
            }

        }
    }
}
